package dao;

import java.util.HashMap;

import org.w3c.dom.Document;

import utility.Util_Trading;

public class SendInvoiceDAO {
public static HashMap<String,String> sendInvoice(){
	
	
	Document response = Util_Trading.sendRequest("SendInvoice.txt", null);
	String time = response.getElementsByTagName("Timestamp").item(0).getChildNodes().item(0).getNodeValue();
	String ack = response.getElementsByTagName("Ack").item(0).getChildNodes().item(0).getNodeValue();
	
	HashMap<String,String> data = new HashMap<String,String>();
	
	data.put("Timestamp", time);
	data.put("Ack", ack);
	
	return data;
}

}

